package com.epwk.pages;

import com.android.uiautomator.core.UiObject;
import com.android.uiautomator.core.UiObjectNotFoundException;
import com.android.uiautomator.testrunner.UiAutomatorTestCase;
import com.epwk.Elements;

public class Navigation extends UiAutomatorTestCase{
	
	public void clickHomePage() throws UiObjectNotFoundException{
		UiObject HomePage = Elements.findById("com.epweike.employer.android:id/home_check_tab1");
		HomePage.clickAndWaitForNewWindow();
	}
	
	public void clickTalent() throws UiObjectNotFoundException{
		UiObject Talent = Elements.findById("com.epweike.employer.android:id/home_check_tab2");
		Talent.clickAndWaitForNewWindow();
	}
	
	public void clickRelease() throws UiObjectNotFoundException{
		UiObject Release = Elements.findByClassName("android.view.View", 2);
		Release.clickAndWaitForNewWindow();
	}
	
	public void clickMessage() throws UiObjectNotFoundException{
		UiObject Message = Elements.findById("com.epweike.employer.android:id/home_check_tab3");
		Message.clickAndWaitForNewWindow();
	}
	
	public void clickMe() throws UiObjectNotFoundException{
		UiObject Me = Elements.findById("com.epweike.employer.android:id/home_check_tab4");
		Me.clickAndWaitForNewWindow();
	}

}
